package com.finance.mapper;

import com.finance.domain.Category;

import java.util.List;

public interface CategoryMapper {
    int deleteByPrimaryKey(Integer cgid);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer cgid);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    List<Category> selectAllCategory(String userId);

    Integer selectCategoryBySlug(String blogCategory);

    int selectCountOfCategory();

    String selectCategoryNameById(Integer cgid);
}
